source /etc/profile
git pull
cd /opt/yan/product/x-yan/x-yan
/usr/local/maven/bin/mvn clean package
cd  /opt/yan/product/x-yan/x-yan/yan-starter
aa=$(ps -ef | grep yan-starter.jar | awk '{print $2}')
print $aa
kill -9 $aa
sleep 5
mv /opt/yan/product/x-yan/x-yan/yan-starter/target/yan-starter.jar /opt/yan
cd /opt/yan
nohup java -Dspring.profiles.active=idcPrd -Dserver.port=8081 -jar yan-starter.jar > yan-starter.log &
